package com.hdhere.domain.common.enums;

/**
 * 数据状态状态
 */
public enum RowState implements AbstractEnum {
    /**
     * 草稿
     */
    Draft((short)10, "Draft"),

    /**
     * 有效
     */
    Effective((short)20, "Effective"),

    /**
     * 无效
     */
    Invalid((short)30, "Invalid");

    private short id;

    private String name;

    RowState(short id, String name) {

        this.id = id;
        this.name = name;
    }

    public short getId() {

        return this.id;
    }

    @Override
    public String getSid() {

        return String.valueOf(id);
    }

    @Override
    public String getName() {

        return name;
    }
}
